package com.imooc.courselist.service.impl;

import com.imooc.courselist.dao.CourseMapper;
import com.imooc.courselist.entity.Course;
import com.imooc.courselist.service.CourseListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class CourseListServiceImpl implements CourseListService {
    @Autowired
    CourseMapper courseMapper;
    /**
     * @description: 课程列表
     * @return: 课程列表
     */
    @Override
    public List<Course> courseList() {
        return courseMapper.findValidCourse();
    }
}
